package com.yswee.framework;


import com.yswee.framework.utils.PreferenceUtils;


public class Preference {

	private static final String KEY_ISDEBUG = "isdebug";
	private static final String KEY_ISSTORAGELOG = "isstoragelog";
	private static final String KEY_ISSTORAGEDBLOG = "isstoragedblog";

	public static boolean getIsDebug() {
		return PreferenceUtils.getBoolean(KEY_ISDEBUG, BuildConfig.DEBUG);
	}
	
	public static void setIsDebug(boolean value) {
		PreferenceUtils.putBoolean(KEY_ISDEBUG, value);
	}
	
	public static boolean getIsStorageLog() {
		return PreferenceUtils.getBoolean(KEY_ISSTORAGELOG, BuildConfig.DEBUG);
	}
	
	public static void setIsStorageLog(boolean value) {
		PreferenceUtils.putBoolean(KEY_ISSTORAGELOG, value);
	}
	
	public static boolean getIsStorageDBLog() {
		return PreferenceUtils.getBoolean(KEY_ISSTORAGEDBLOG, BuildConfig.DEBUG);
	}
	
	public static void setIsStorageDBLog(boolean value) {
		PreferenceUtils.putBoolean(KEY_ISSTORAGEDBLOG, value);
	}
	
}
